#pragma once

#define DEPOTMAX 100
#define NAMEMAX 20

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <conio.h>
#include <stdlib.h>

typedef struct
{
	int year;
	int month;
	int day;
}Date;

typedef struct
{
	int num;
	char goods[NAMEMAX];
	int count;
	int price;
	Date date;
}info;

typedef struct
{
	info a[DEPOTMAX];
	int size;
}Depot;

void InitDepot(Depot* d);

void Show(Depot* d);

void InputStock(Depot* d);

void OutputStock(Depot* d);

void ChangeDepot(Depot* d);

bool SeekDepot(Depot* d);

void SortDepot(Depot* d);

void SaveInfo(Depot* d);

void LoadInfo(Depot* d);